import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import Antd from "ant-design-vue";
import "ant-design-vue/dist/reset.css"; // 引入全局样式（Vue 3 推荐使用 reset.css）
import * as Icons from "@ant-design/icons-vue"; // 引入图标库
import "./style.css";
import { createPinia } from "pinia";

const app = createApp(App);
// 引入路由
app.use(router);
// 全局注册 antd 组件
app.use(Antd);

app.use(createPinia());

// 全局注册图标（可选）
for (const iconName in Icons) {
  app.component(iconName, Icons[iconName]);
}

app.mount("#app");
